Part Number Hot Search : 
1N4746 A3240C BSP350 SMAJ33A 15090 1002T 15090 MCD454A
Product Description
Full Text Search
 

To Download AD1941 Datasheet File

  If you can't view the Datasheet, Please click here to try to view without PDF Reader .  
 
 


  Datasheet File OCR Text:
  sigmadsp tm multichannel 28-bit audio processor preliminary technical data AD1941 rev. pre information furnished by analog devices is believed to be accurate and reliable. however, no responsibility is assumed by analog devices for its use, nor for any infringements of patents or other rights of third parties that may result from its use. specifications subject to change without notice. no license is granted by implication or otherwise under any patent or patent rights of analog devices. trademarks and registered trademarks are the property of their respective owners. one technology way, p.o. box 9106, norwood, ma 02062-9106, u.s.a. tel: 781.329.4700 www.analog.com fax: 781.326.8703 ? 2005 analog devices, inc. all rights reserved. features 16-channel digital audio processor accepts sample rates up to 192 khz 28-bit 28-bit multiplier with full 56-bit accumulator fully-programmable program ram for custom program download parameter ram allows complete control of 1,024 parameters control port features safelo ad for transparent parameter updates and complete mode an d memory transfer control target/slew ram for click-free volume control and dynamic parameter updates double precision mode fo r full 56-bit processing pll for generating mclk from 64 f s , 256 f s , 384 f s , or 512 f s clocks hardware-accelerated dsp core 21 kb (6,144 words) data memory for up to 128 ms of audio delay at f s = 48 khz flexible serial data port with i 2 s compatible, left-justified, and right-justified serial port modes 8- and 16-channel tdm input/output modes on-chip voltage regulator for compatibility with 3.3 v and 5 v systems programmable low power mode fast start-up and boot time from power on or reset 48-lead lqfp plastic package applications automotive sound systems digital televisions home theater systems (dolby digital/dts postprocessor) multichannel audio systems mini-component stereos multimedia audio digital speaker crossover musical instruments in-seat sound systems (aircrafts/motor coaches) functional block diagram voltage regulator ad1940 28 28 dsp core data format: pll serial control interface serial data/ tdm inputs master clock input spi i/o ram rom serial data/ tdm outputs 04607-0-001 2 4 4 2 2 5.23 (single precision) 10.46 (double precision) figure 1. general description the AD1941 is a complete 28-bit, single-chip, multichannel audio dsp for equalization, multiband dynamics processing, delay compensation, speaker compensation, and image enhancement. these algorithms can be used to compensate for the real-world limitations of speakers, amplifiers, and listening environments, resulting in a dramatic improvement of perceived audio quality. the signal processing used in the AD1941 is comparable to that found in high end studio equipment. most of the processing is done in full, 56-bit double-precision mode, resulting in very good low level signal performance and the absence of limit cycles or idle tones. the dynamics processor uses a sophisti- cated, multiple-breakpoint algorithm often found in high end broadcast compressors. the AD1941 is a fully-programmable dsp. easy to use software allows the user to graphically configure a custom signal processing flow using blocks such as biquad filters, dynamics processors, and surround sound processors. an extensive control port allows click-free parameter updates, along with readback capability from any point in the algorithm flow. the AD1941s digital input and output ports allow a glueless connection to adcs and dacs by multiple, 2-channel serial data streams or tdm data streams. when in tdm mode, the AD1941 can input 8 or 16 channels of serial data, and can output either 8 or 16 channels of serial data. the input and output port configurations can be individually set. the AD1941 is controlled on a 2-wire i 2 c bus.
AD1941 preliminary technical data rev. pre | page 2 of 32 table of contents specifications..................................................................................... 3 digital i/o ..................................................................................... 3 power.............................................................................................. 3 temperature range ...................................................................... 3 digital timing............................................................................... 4 pll ................................................................................................. 4 regulator........................................................................................ 4 absolute maximum ratings............................................................ 5 esd caution.................................................................................. 5 digital timing diagrams................................................................. 6 pin configuration and function descriptions............................. 8 features ............................................................................................ 10 pin functions .............................................................................. 11 signal processing ............................................................................ 13 overview...................................................................................... 13 numeric formats........................................................................ 13 programming .............................................................................. 13 control port..................................................................................... 14 overview...................................................................................... 14 i 2 c port ........................................................................................ 14 rams and registers....................................................................... 16 control port addressing............................................................ 16 parameter ram contents......................................................... 16 recommended program/parameter loading procedures.... 17 target/slew ram ....................................................................... 17 safeload registers....................................................................... 19 data capture registers .............................................................. 20 dsp core control register ....................................................... 20 ram configuration register ................................................... 21 control port read/write data formats .................................. 22 serial data input/output ports .................................................... 24 serial output control registers ............................................... 26 serial input control register .................................................... 26 initialization .................................................................................... 29 power-up sequence ................................................................... 29 setting master clock/pll mode.............................................. 29 voltage regulator ....................................................................... 29 outline dimensions ....................................................................... 30 ordering guide .......................................................................... 30
preliminary technical data AD1941 rev. pre | page 3 of 32 specifications test conditions, unless otherwise noted. table 1. parameter conditions supply voltage (vdd) 2.5 v pll voltage (pll_vdd) 2.5 v output voltage (odvdd) 5.0 v invdd voltage 5.0 v ambient temperature 25c master clock input 3.072 mhz, 64 f s mode load capacitance 50 pf load current 1 ma input voltage, hi 2.4 v input voltage, lo 0.8 v digital i/o table 2. digital i/o 1 parameter min max unit input voltage, hi (v ih ) 2.1 v input voltage, lo (v il ) 0.8 v input leakage (i ih ) 10 a input leakage (i il ) 10 a high level output voltage (v oh ) odvdd = 4.5 v, i oh = 1 ma 3.9 v high level output voltage (v oh ) odvdd = 3.0 v, i oh = 1 ma 2.6 v low level output voltage (v ol ) odvdd = 4.5 v, i ol = 1 ma 0.4 v low level output voltage (v ol ) odvdd = 3.0 v, i ol = 1 ma 0.3 v input capacitance 5 pf 1 all measurements across ? 40c to 125c (case) and across vdd = 2.25 v to 2.75 v. power table 3. parameter min typ max 1 unit supplies voltage 2.25 2.5 2.75 v digital current 92 155 2 ma pll current 3.5 8 ma digital current, reset 4.5 3 13 3 ma pll current, reset 3 8.5 ma dissipation operation, all supplies 238.8 mw reset, all supplies 10.8 mw 1 maximum specifications are measured across ? 40c to 125c (case) and across vdd = 2.25 v to 2.75 v. 2 measurement running a typical large program that writes to all 16 outputs with 0 db digital sine waves applied to all eight in puts. your program may differ. 3 the digital reset current is specified for the given test condit ions. this current scales with the input mclk rate, so higher input clocks draw more current while in reset. temperature range table 4. parameter min typ max unit functionality guaranteed C40 +105 c ambient C40 +125 c case
AD1941 preliminary technical data rev. pre | page 4 of 32 digital timing table 5 digital timing 1 parameter comments min max unit t mp mclk period 512 f s mode 36 244 ns t mp mclk period 384 f s mode 48 366 ns t mp mclk period 256 f s mode 73 488 ns t mp mclk period 64 f s mode 291 1953 ns t mp mclk period bypass mode 12 ns t mdc mclk duty cycle bypass mode 40 60 % t bil bclk_in lo pulse width 4 ns t bih bclk_in hi pulse width 2 ns t lis lrclk_in setup to bclk_in rising 12 ns t lih lrclk_in hold from bclk_in rising 0 ns t sis sdata_inx setup to bclk_in rising 3 ns t sih sdata_inx hold from bclk_in rising 2 ns t los lrclk_outx setup slave mode 2 ns t loh lrclk_outx hold slave mode 2 ns t ts bclk_outx falling to lrclk_outx timing skew 2 ns t sods sdata_outx delay slave mode, from bclk_outx falling 17 ns t sodm sdata_outx delay master mode, from bclk_outx falling 17 ns t rlpw resetb lo pulse width 10 ns 1 all timing specifications are given for the default (i 2 s) states of the serial input control port and the serial output control ports. see table 32. pll table 6. parameter min typ max unit lock time 3 20 ms regulator table 7. parameter min typ max unit vsense output voltage 2.25 2.5 2.68 v
preliminary technical data AD1941 rev. pre | page 5 of 32 absolute maximum ratings table 8. parameter min max unit vdd to dgnd C0.3 +3.0 v pll_ vdd to pgnd C0.3 +3.0 v od vdd to dgnd C0.3 +6.0 v invdd to dgnd odvdd +6.0 v digital inputs dgnd C 0.3 invdd + 0.3 v maximum junction temperature 135 c storage temperature range C65 +150 c soldering (10 sec) 300 c stresses above those listed under absolute maximum ratings may cause permanent damage to the device. this is a stress rating on ly; functional operation of the device at these or any other conditions above those indicated in the operational section of this sp ecification is not implied. exposure to absolute maximum rating conditions for extended periods may affect device reliability. table 9. package characteristics parameter min typ max unit ja thermal resistance (junction-to-ambient) 72 c/w jc thermal resistance (junction-to-case) 19.5 c/w esd caution esd (electrostatic discharge) sensitive device. electros tatic charges as high as 4000 v readily accumulate on the human body and test equipment and can discharge wi thout detection. although this product features proprietary esd protection circuitry, permanent dama ge may occur on devices subjected to high energy electrostatic discharges. therefore, proper esd precautions are recommended to avoid performance degradation or loss of functionality.
AD1941 preliminary technical data rev. pre | page 6 of 32 digital timing diagrams bclk_in lrclk_in sdata_inx left-justified mode lsb sdata_inx i 2 s-justified mode sdata_inx right-justified mode t bih msb msb-1 msb msb 8-bit clocks (24-bit data) 12-bit clocks (20-bit data) 14-bit clocks (18-bit data) 16-bit clocks (16-bit data) t lis t sis t sih t sih t sis t sis t sih t sis t sih t lih t bil 04607-0-013 figure 2. serial input port timing bclk_outx lrclk_outx sdata_outx left-justified mode lsb sdata_outx i 2 s-justified mode sdata_outx right-justified mode t bih msb msb-1 msb msb 8-bit clocks (24-bit data) 12-bit clocks (20-bit data) 14-bit clocks (18-bit data) 16-bit clocks (16-bit data) t los t sdds t sddm t sdds t sddm t sdds t sddm t lch t ts t bil 04607-0-014 figure 3. serial output port timing
preliminary technical data AD1941 rev. pre | page 7 of 32 mclk resetb t mp t rlpw 04607-0-016 figure 4. master clock and reset timing
AD1941 preliminary technical data rev. pre | page 8 of 32 pin configuration and fu nction descriptions 36 35 34 33 32 31 30 29 28 27 26 25 13 14 15 16 17 18 19 20 21 22 23 24 1 2 3 4 5 6 7 8 9 10 11 12 48 47 46 45 44 39 38 37 43 42 41 40 gnd bclk_out1 lrclk_out1 odvdd sdata_out3 sdata_out2 sdata_out1 vdd mclk reserved pll_vdd i2c_filt_en sdata_out0 odvdd bclk_out0 lrclk_out0 gnd vdd pin 1 indicator pll_ctrl0 pll_ctrl1 pll_ctrl2 pll_gnd AD1941 top view (not to scale) v d d s d a t a _ i n 1 s d a t a _ i n 2 s d a t a _ i n 3 s d a s c l n c n c r e s e t b g n d sdata_in0 adr_sel gnd vref vdr ive v sense vsupply inv dd s data_out7 sda ta_out6 odvdd sda ta_out5 sdata _out4 vdd 04607-0-011 lrclk_in bclk_in nc = no connect figure 5. 48-lead lqfp pin configuration, AD1941 table 10. pin function descriptions pin o. i/o mnemonic description 1, 25, 37 vdd core power. 2 in mclk master clock input. 3, 21, 22 reserved these pins should be connected to ground. 4 in pll_ctrl0 pll control 0. 5 in pll_ctrl1 pll control 1. 6 in pll_ctrl2 pll control 2. 7 pll_gnd pll ground. 8 pll_vdd pll power. 9 in i2c_filt_enb i 2 c filter enable, active low. 10 in lrclk_in left/right clock for serial or tdm data inputs. 11 in bclk_in bit clock for serial or tdm data inputs. 12, 24, 36, 48 gnd digital ground. 13 vdd core power. 14 in sdata_in0 serial data input 0. 12 in sdata_in1 serial data input 1. 16 in sdata_in2/tdm_in1 serial data input 2/tdm input 1. 17 in sdata_in3/tdm_in0 serial data input 3/tdm input 0. 18 in adr_sel control port address select. 19 in/out sda i 2 c serial data i/o. 20 in scl i 2 c clock. 23 in resetb reset the AD1941. 26 in/out lrclk_out0 left/right clock output 0. 27 in/out bclk_out0 bit clock output 0. 28, 33, 40 odvdd power co nnection for output pins. 29 out sdata_out0/tdm_o0 serial data o utput 0/tdm (16- or 8-channel) output 0 30 out sdata_out1 serial data output 1. 31 out sdata_out2 serial data output 2. 32 out sdata_out3 serial data output 3.
preliminary technical data AD1941 rev. pre | page 9 of 32 pin no. i/o mnemonic description 34 in/out lrclk_out1 left/right clock output 1. 35 in/out bclk_out1 bit clock output 1. 38 out sdata_out4/tdm_o1 serial data output 4./tdm (8-channel) output 1 39 out sdata_out5 serial data output 5. 41 out sdata_out6 serial data output 6. 42 out sdata_out7/dcsout serial da ta output 7/data capture output. 43 invdd input voltage reference. 44 in vsupply voltage level input to regulator. usually 3.3 v or 5 v. 45 in vsense digital power le vel. should be tied to vdd. 46 out vdrive drive for external pnp transistor. 47 out vref reference level for voltage regulator.
AD1941 preliminary technical data rev. pre | page 10 of 32 features the core of the AD1941 is a 28-bit dsp (56-bit with double precision) optimized for audio processing. the AD1941 contains a program ram that is initialized from an internal program rom on power-up. the program ram can be loaded with a custom program after power-up. signal processing parameters are stored in a 1024-location parameter ram, which is initialized on power-up by an internal boot- rom. new values are written to the parameter ram using the control port. the values stored in the parameter ram control individual signal processing blocks, such as iir equalization filters, dynamics processors, audio delays, and mixer levels. a safeload feature allows parameters to be transparently updated without causing clicks on the output signals. the target/slew ram contains 64 locations and can be used as channel volume controls or for other parameter updates. these ram locations take a target value for a given parameter and ramp the current parameter value to the new value using a specified time constant and one of a selection of linear or logarithmic curves. the AD1941 has a sophisticated control port that supports complete read/write capability of all memory locations. five control registers (core, ram configuration, serial output 0 to 7, serial output 8 to 15, and serial input) are provided to offer complete control of the chips configuration and serial modes. handshaking is included for ease of memory uploads/downloads. the AD1941 contains eight independent data capture circuits that can be programmed to tap the signal flow of the processor at any point in the dsp algorithm flow. six of these captured signals can be accessed by reading from the data capture registers through the control port. the remaining two data capture registers can be used to send any internal captured signal to a stereo digital output signal on pin sdata_out7 for driving external dacs or digital analyzers. the AD1941 has very flexible serial data input/output ports that allows for glueless interconnection to a variety of adcs, dacs, general-purpose dsps, s/pdif receivers, and sample rate converters. the AD1941 can be configured in i 2 s, left-justified, right-justified, or tdm serial port compatible modes. it can support 16, 20, and 24 bits in all modes. the AD1941 accepts serial audio data in msb first and twos complement format. the AD1941 operates from a single 2.5 v power supply. it is fabricated on a single monolithic integrated circuit and is housed in a 48-lead lqfp package for operation over the C40c to +105c temperature range. 04607-0-003 28 28 dsp core data format: 5.23 (single precision) 10.46 (double precision) voltage regulator memory controllers control regisiter trap reg. safeload register serial control port mclk pll data memory 6k 28 target/slew ram 64 28 serial data/tdm input group pll mode select master clock input spi i/o group resetb program ram 1536 40 boot rom boot rom parameter ram 1024 28 coefficient rom 512 28 2 2 4 4 2 2 serial data/ tdm output group regulator group figure 6. block diagram
preliminary technical data AD1941 rev. pre | page 11 of 32 pin functions table 10 shows the AD1941s pin numbers, names, and functions. input pins have a logic threshold compatible with ttl input levels and may be used in systems with 3.3 v or 5 v logic. sdata_in0 sdata_in1 sdata_in2/tdm_in1 sdata_in3/tdm_in0 serial data/tdm inputs. the serial format is selected by writing to bits 2:0 of the serial input port control register. sdata_in2 and sdata_in3 are dual-function pins that can be set to a variety of standard 2-channel formats or to tdm mode. two of these four pins (sdata_in2 and sdata_in3) can be used as tdm inputs in either dual-wire 8-channel mode or single-wire 16-channel mode (tdm_o0 only). in dual-wire 8-channel mode, channels 0-7 will be input on sdata_in3 and channels 8-15 on sdata_in2. in single-wire 16-channel mode, channels 0-15 will be input on sdata_in2. see the serial data input/output ports section for further explanation. lrclk_in bclk_in left/right and bit clocks for timing the input data. these input clocks are associated with the sdata_in0-3 signals. the input port is always in a slave configuration. these pins also function as frame sync and bit clock for the input tdm stream. sdata_out0/tdm_o0 sdata_out1 sdata_out2, sdata_out3 sdata_out4/tdm_o1 sdata_out5 sdata_out6 sdata_out7/dcsout serial data/tdm/data capture outputs. these pins are used for serial digital outputs. for non-tdm systems, these eight pins can output 16 channels of digital audio, using a variety of standard two-channel formats. they are grouped into two groups of four pins (0-3 and 4-7); each group can be indepen- dently set to any of the available serial modes, allowing the AD1941 to simultaneously communicate with two external devices with different serial formats. two of these eight pins (sdata_out0 and sdata_out4) can be used as tdm outputs in either dual-wire 8-channel mode or single-wire 16-channel mode (tdm_out0 only). in dual-wire 8-channel mode, channels 0-7 will be output on sdata_out0 and channels 8-15 on sdata_out4. see the serial data input/output ports section for further explanation. sdata_out7 can also be used as a data capture output, as described in the data capture registers section. lrclk_out0 bclk_out0 output clocks. this clock pair is used for outputs sdata_out0C3. in slave mode, these clocks are inputs to the AD1941. on power-up, these pins are set to slave mode to avoid conflicts with external master-mode devices. lrclk_out1 bclk_out1 output clocks. this clock pair is used for outputs sdata_out4C7. in slave mode, these clocks are inputs to the AD1941. on power-up, these pins are set to slave mode to avoid conflicts with external master-mode devices. mclk master clock input. the AD1941 uses a pll to generate the appropriate internal clock for the dsp core. an in-depth description of using the pll is found in the setting master clock/pll mode section. pll_ctrl0 pll_ctrl1 pll_ctrl2 pll mode control pins. the functionality of these pins is described in the setting master clock/pll mode section. scl i 2 c clock. this pin is always an input because the AD1941 cannot act as a master on the i 2 c bus. the line connected to this pin should have a 2 k? pull-up resistor on it. sda i 2 c serial data. the data line is bidirectional. the line connected to this pin should have a 2 k? pull-up resistor on it. i2c_filt_enb i 2 c spike filter enable/disable. this enables (active low) the i 2 c spike filter, which is used to prevent noise or glitches on the i 2 c bus, from improperly affecting the AD1941. adr_sel address select. this pin selects the address for the AD1941s communication with the control port. this allows two AD1941s to be used with a single clatch signal. resetb active-low reset signal. after resetb goes high, the AD1941 goes through an initialization sequence where the program and parameter rams are initialized with the contents of the on- board boot roms. all registers are set to 0, and the data rams are also set to 0. the initialization is complete after 8,192 internal mclk cycles (referenced to the rising edge of resetb), which corresponds to 1,366 external mclk cycles if the part is in 256 f s mode. new values should not be written to the control port until the initialization is complete.
AD1941 preliminary technical data rev. pre | page 12 of 32 vref voltage reference for regulator. this pin is driven by an internal 1.15 v reference voltage. vdrive drive for external transistor. the base of the voltage regulators external pnp transistor is driven from this pin. vsense digital power level. the voltage level on the vdd pins is sensed on vsense. vsense should be tied to vdd. vsupply main supply voltage level. this pin is tied to the boards main voltage supply. this is usually 3.3 v or 5 v. vdd (4) digital vdd for core. 2.5 v nominal. gnd (4) digital ground. pll_vdd supply for AD1941 pll. 2.5 v nominal. pll_gnd pll ground. odvdd (3) vdd for all digital outputs. the high levels of the digital output signals are set on this pin. the voltage can range from 2.5 v to 5.0 v. invdd peak input voltage level. the highest voltage level that the input pins will see should be connected to invdd. this is to protect the chip inputs from voltage overstress. the voltage on this pin must always be at or above the level of odvdd.
preliminary technical data AD1941 rev. pre | page 13 of 32 signal processing overview the AD1941 is designed to provide all signal processing functions commonly used in stereo or multichannel playback systems. the signal processing flow is set by using the adi- supplied software, which allows graphical entry and real-time control of all signal processing functions. many of the signal processing functions are coded using full, 56-bit double-precision arithmetic. the input and output word lengths are 24 bits. four extra headroom bits are used in the processor to allow internal gains up to 24 db without clipping. additional gains can be achieved by initially scaling down the input signal in the signal flow. the signal processing blocks can be arranged in a custom pro- gram that can be loaded to the AD1941s ram. the available signal processing blocks are explained in the following sections. numeric formats it is common in dsp systems to use a standardized method of specifying numeric formats. fractional number systems are specified by an a.b format, where a is the number of bits to the left of the decimal point and b is the number of bits to the right of the decimal point. the AD1941 uses the same numeric format for both the coeffi- cient values (stored in the parameter ram) and the signal data values. the format is as follows: numerical format: 5.23 range: C16.0 to (+16.0 ? 1 lsb) examples: 1000000000000000000000000000 = C16.0 1110000000000000000000000000 = C4.0 1111100000000000000000000000 = C1.0 1111111000000000000000000000 = C0.25 1111111111111111111111111111 = (1 lsb below 0.0) 0000000000000000000000000000 = 0.0 0000001000000000000000000000 = 0.25 0000100000000000000000000000 = 1.0 0010000000000000000000000000 = 4.0 0111111111111111111111111111 = (16.0 C 1 lsb). the serial port accepts up to 24 bits on the input and is sign- extended to the full 28 bits of the core. this allows internal gains of up to 24 db without encountering internal clipping. a digital clipper circuit is used between the output of the dsp core and the serial output ports (see figure 7). this clips the top four bits of the signal to produce a 24-bit output with a range of 1.0 (minus 1 lsb) to C1.0. 4-bit sign extension data in serial port 1.23 5.23 signal processing (5.23 format) digital clipper 5.23 1.23 04607-0-005 figure 7. numeric precision and clipping structure programming on power-up, the AD1941s default program passes the unpro- cessed input signals to the outputs but the outputs come up muted by default (see power-up sequence section). there are 1,536 instruction cycles per audio sample, resulting in an inter- nal clock rate of 73.728 mhz (for f s = 48 khz). this dsp runs in a stream-oriented manner, meaning all 1,536 instructions are executed each sample period . the AD1941 may also be set up to accept double or quad-s peed inputs by reducing the number of instructions/sample, which can be set in the core control register. the part can be programmed easily using graphical tools pro- vided by analog devices. no knowledge of writing dsp code is needed to program this part. the user can simply connect graphical blocks such as biquad filters, dynamics processors, mixers, and delays in a signal flow schematic, compile the design, and load the program and parameter files into the AD1941s program ram through the control port. signal processing blocks available in the provided libraries include ? single- and double-precision biquad filters ? mono and multichannel dynamics processors ? mixers and splitters ? tone and noise generators ? first-order filters ? fixed and variable gain ? rms look-up tables ? loudness ? delay ? stereo enhancement (phat stereo?) ? interpolators and decimators more blocks are always in development. analog devices also provides proprietary and third-party algorithms for applications such as matrix decoding, bass enhancement, and surround virtualizers. please contact adi for information about licensing these algorithms.
AD1941 preliminary technical data rev. pre | page 14 of 32 control port overview the AD1941 has many different control options that can be set through an i 2 c interface. most signal processing parameters are controlled by writing new values to the parameter ram using the control port. other functions, such as mute and input/ output mode control, are programmed by writing to the control registers. the control port is capable of full read/write operation for all of the memories and registers. all addresses may be accessed in both a single-address mode or a burst mode. a control word consists of the chip address, the register/ram subaddress, and the data to be written. the data can be variable in its byte width. the first byte of a control word (byte 0) contains the 7-bit chip address plus the r/w bit. the next two bytes (bytes 1 and 2) together form the subaddress of the memory or register location within the AD1941. this subaddress needs to be two bytes because the memories within the AD1941 are directly addressable, and their sizes exceed the range of single-byte addressing. all subsequent bytes (bytes 3, 4, etc.) contain the data, such as control port data or program or parameter data. the AD1941 has several mechanisms for updating signal processing parameters in real time without causing pops or clicks. in cases where large blocks of data need to be down- loaded, the output of the dsp core can be halted (using bit 9 of the core control register), new data loaded, and then restarted. this is typically done during the booting sequence at start-up or when loading a new program into ram. in cases where only a few parameters need to be change d, they can be loaded without halting the program. to avoid unwanted side effects while loading parameters on the fly, the sigmadsp provides the safeload registers. the safeload registers can be used to buffer a full set of parameters (e.g. the five coefficients of a biquad) and then transfer these parameters into the active program within one audio frame. the safeload mode uses internal logic to prevent contention between the dsp core and the control port. i 2 c port the AD1941 supports a 2-wire serial (i 2 c compatible) micro- processor bus driving multiple peripherals. two inputs, serial data (sda) and serial clock (scl), carry information between the AD1941 and the system i 2 c master controller. the AD1941 is always a slave on the i 2 c bus, which means that it will never initiate a data transfer. each slave device is recognized by a unique address. the AD1941 has four possible slave addresses, two for writing operations and two for reading. these are unique addresses for the device and are illustrated in table 11. the lsb of the byte sets either a read or write operation; logic level 1 corresponds to a read operation, and logic level 0 corresponds to a write operation. the seventh bit of the address is set by tying the adr_sel pin of the AD1941 to logic level 0 or logic level 1. the AD1941 i 2 c port uses a spike filter which can be enabled or disabled by the i2c_filt_enb pin. enabling this filter guarantees that all isolated spikes, both positive and negative, less than 50 ns wide will be removed from the i 2 c signal. the filter is active when the i2c_filt_enb pin is low, and is disabled when the pin is at a high logic level. tale 11. i 2 c address for AD1941 adr_sel r/w slave address 0 0 0x28 0 1 0x29 1 0 0x2a 1 1 0x2b initially, all devices on the i 2 c bus are in an idle state, which is where the devices monitor the sda and scl lines for a start condition and the proper address. the i 2 c master initiates a data transfer by establishing a start condition, defined by a high-to-low transition on sda while scl remains high. this indicates that an address/data st ream will follow. all devices on the bus respond to the start condition and shift the next eight bits (7-bit address + r/w bit) msb first. the device that recognizes the transmitted address responds by pulling the data line low during the ninth clock pulse. this ninth bit is known as an acknowledge bit. all other devices withdraw from the bus at this point and return to the idle condition. the r/w bit determines the direction of the data. a logic 0 on the lsb of the first byte means the master will write information to the peripheral. a logic 1 on the lsb of the first byte means the master will read information from the peripheral. a data transfer takes place until a stop condition is encountered. a stop condition occurs when sda transitions from low to high while scl is held high. figure 8 shows the timing of a single-byte i 2 c write. burst mode addressing, where the subaddresses are automati- cally incremented at word boundaries, can be used for writing large amounts of data to contiguous memory locations. this increment happens automatically if a stop condition is not encountered after a single-word write. the registers and memories in the AD1941 range in width from one to five bytes, so the autoincrement feature knows the mapping between sub- addresses and the word length of the destination register (or memory location). a data transfer is always terminated by a stop condition. stop and start conditions can be detected at any stage during the data transfer. if these conditions are asserted out of sequence with normal read and write operations, these cause an immediate jump to the idle condition. during a given scl high period, the user should only issue one start condition, one stop condition, or a single stop condition followed by a single start
preliminary technical data AD1941 rev. pre | page 15 of 32 condition. if an invalid subaddress is issued by the user, the AD1941 does not issue an acknowledge and returns to the idle condition. if the user exceeds the highest subaddress while in autoincrement mode, one of two actions will be taken. in read mode, the AD1941 outputs the highest subaddress register contents until the master device issues a no-acknowledge, indicating the end of a read. a no-acknowledge condition is where the sda line is not pulled low on the ninth clock pulse on scl. if the highest subaddress location is reached while in write mode, the data for the invalid byte is not loaded into any subaddress register, a no-acknowledge is issued by the AD1941, and the part returns to the idle condition. i 2 c register/memory write operation figure 9 shows the timing of a single-word write operation. every ninth clock, the AD1941 issues an acknowledge by pulling its data line low. figure 10 shows the timing of a burst mode write sequence. this figure shows an example where the target destination registers are two bytes. the AD1941 knows to increment its sub- address register every two bytes because the requested subaddress corresponds to a register or memory area with a 2-byte word length. the timing of a single word read operation is shown in figure 11. note that the first r/ w bit is still a 0, indicating a write operation. this is because the subaddress still needs to be written in order to set up the internal address. after the AD1941 acknowledges the receipt of the subaddress, the master must issue a repeated start command followed by the chip address byte with the r/ w set to 1 (read). this causes the AD1941s sda to turn around and begin driving data back to the master. the master then responds every ninth pulse with an acknowledge pulse to the AD1941. figure 12 shows the timing of a burst-mode read sequence. this figure shows an example where the target read registers are two bytes. the AD1941 knows to increment its subaddress register every two bytes because the requested subaddress corresponds to a register or memory area with word lengths of two bytes. other address ranges may have a variety of word lengths ranging from one to five bytes; the AD1941 always decodes the subaddress and sets the autoincrement circuit so that the address increments after the appropriate number of bytes. 1?7 8 9 1?7 8 9 1?7 8 9 1?7 8 9 start addr r/w ack ack subaddr low subaddr hi ack data [7:0] ack s p sda scl 8 stop 04607-0-010 figure 8. single byte i 2 c write timing s chip address, r/ w 0 as suaddress high as suaddress low as data 0, byte 1 as data 0, byte 2 as data 0, byte n p figure 9. single-word i 2 c write s chip address, r/ w 0 as suaddress high as suaddress low as data 0, byte 1 as data 0, byte 2 as data 1, byte 1 as data 1, byte 2 as first word second word p figure 10. burst mode i 2 c write s chip address, r/ w 0 as suaddress high as suaddress low as s chip addr, r/ w 1 as data 0, byte 1 am data 0, byte 2 am data 0, byte n p figure 11. single word i 2 c read s chip address, r/ w 0 as suaddress high as suaddress low as s chip address, r/ w 1 as data 0, byte 1 am data 0, byte 2 first word am p figure 12. burst mode i 2 c read s = start bit a(s) = acknowledge by slave p = stop bit a(m) = acknowledge by master
AD1941 preliminary technical data rev. pre | page 16 of 32 rams and registers table 12. control port addresses spi address register name read/write word length 0C1023 (0x0000C0x03ff) parameter ram write: 4 bytes, read: 4 bytes 1024C2559 (0x0400C0x09ff) program ram write: 5 bytes, read: 5 bytes 2560C2623 (0x0a00C0x0a3f) target/slew ram write: 5 bytes, read: n/a 2624C2628 (0x0a40C0x0a44) parameter ram data safeload registers 0C4 write: 5 bytes, read: n/a 2629C2633 (0x0a45C0x0a49) parameter ram indirect address sa feload registers 0-4 write: 2 bytes, read: n/a 2634C2639 (0x0a4aC0x0a4f) data capture registers 0C5 (control port readback) write: 2 bytes, read: 3 bytes 2640C2641 (0x0a50C0x0a51) data capture registers (dig ital output) write: 2 bytes, read: n/a 2642 (0x0a52) dsp core control register write: 2 bytes, read: 2 bytes 2643 (0x0a53) ram configuration regist er write: 1 byte, read: 1 byte 2644 (0x0a54) serial output control register 1 (c hannels 0C7) write: 2 bytes, read: 2 bytes 2645 (0x0a55) serial output control register 2 (c hannels 8C15) write: 2 bytes, read: 2 bytes 2646 (0x0a56) serial input control regi ster write: 1 byte, read: 1 byte table 13. ram read/write modes memory size spi address range read write burst mode available? write modes parameter ram 1024 28 0C1023 (0x0000C0x03ff) yes yes yes direct write 1 safeload write program ram 1536 40 1024C2559 (0x0400C0x09ff) yes yes yes direct write 1 target/slew ram 64 34 2560C2623 (0x0a00C0x0a3f) no yes (via safeload) yes 2 safeload write 1 dsp core should be shut down first to avoid clicks/pops. 2 the target/slew rams need to be written through the safeload registers. safeload writes may be done in either single-write or burst-mode. control port addressing table 12 shows the addressing of the AD1941s ram and register spaces. the address space encompasses a set of registers and three rams: one each for holding signal processing parameters, holding the program instructions, and ramping parameter values. the program and parameter rams are initialized on power-up from on-board boot roms. table 13 shows the sizes and available writing modes of the parameter, program, and target/slew rams. parameter ram contents the parameter ram is 28 bits wide and occupies addresses 0 to 1023. the parameter ram is initialized to all 0s on power-up. the data format of the parameter ram is twos complement 5.23. this means that the coefficients may range from +16.0 (minus 1 lsb) to C16.0, with 1.0 represented by the binary word 0000100000000000000000000000. options for parameter updates the parameter ram can be written and read using one of the two following methods. 1. direct read/write . this method allows direct access to the program and parameter rams. this mode of operation is normally used during a complete new load of the rams, using burst-mode addressing. the clear registers bit in the core control register should be set to 0 using this mode to avoid any clicks or pops in the outputs. note that it is also possible to use this mode during live program execution, but since there is no handshaking between the core and the control port, the parameter ram will be unavailable to the dsp core during control writes, resulting in clicks and pops in the audio stream. 2. safeload writes. up to five safeload registers can be loaded with address/data intended for the parameter ram. the data is then transferred to the requested address when the ram is not busy. this method can be used for dynamic updates while live program material is playing through the AD1941/AD1941. for example, a complete update of one biquad section can occur in one audio frame, while the ram is not busy. this method is not available for writing to the program ram or control registers. the following section discusses these two options in more detail.
preliminary technical data AD1941 rev. pre | page 17 of 32 recommended program/parameter loading procedures when writing large amounts of data to the program or para- meter ram in direct write mode, the processor core should be disabled to prevent unpleasant noises from appearing at the audio output. the AD1941 contains several mechanisms for disabling the core. if the loaded program does not use the target/slew ram as the main system volume control (for example, the default power-up program) 1. assert bit 9 (low to assertdefault setting) and bit 6 (high to assert) of the core control register. this zeroes the accumulators, the serial output registers, and the serial input registers. 2. fill the program ram using burst mode writes. 3. fill the parameter ram using burst mode writes. 4. assert bit 7 of the core control register to initiate a data- memory clear sequence. wait at least 100 s for this sequence to complete. this bit is automatically cleared after the operation is complete. 5. deassert bit 9 and bit 6 of the core control register to allow the core to begin normal operation if the loaded program does use the target/slew ram as the main system volume control: 1. assert bit 12 of the core control register. this begins a volume ramp-down, with a time constant determined by the upper bits of the target ram. wait for this ramp-down to complete (the user may poll bit 13 of the core control register, or simply wait for a given amount of time). 2. assert bit 9 (low to assert) and bit 6 (high to assert) of the core control register. this zeroes the accumulators, the serial output registers, and the serial input registers. 3. fill the program ram using burst-mode writes. 4. fill the parameter ram using burst-mode writes. 5. assert bit 7 of the core control register to initiate a data- memory clear sequence. wait at least 100 s for this sequence to complete. this bit is automatically cleared after the operation is complete. 6. deassert bit 9 and bit 6 of the core control register. 7. if the newly loaded program also uses the target/slew ram, deassert bit 12 of the core control register to begin a volume ramp-up procedure. target/slew ram the target/slew ram is a bank of 64 ram locations, each of which can each be set to autoramp from one value to a desired final value in one of four modes. summary the target/slew ram is used by the dsp when a program is loaded into the program ram that uses one or more locations in the slew ram to access internal coefficient data. typically, these coefficients are used for volume controls or smooth cross- fading effects, but may be used to update any value in the para- meter ram. each of the 64 locations in the slew ram are linked to corresponding locations in the target ram. when a new value is written to the target ram using the control port, the corresponding slew ram location begins to ramp toward the target. the value is updated once per audio frame (lrclk period). the target ram is 34 bits wide. the lower 28 bits contain the target data in 5.23 format for the linear and exponential (constant db and rc-type) ramp types. for constant time ramping, the lower 28 bits contain 16 bits in 2.14 format and 12 bits to set the current step. the upper six bits are used to determine the type and speed of the ramp envelope in all modes. the format of the data write for linear and exponential formats is shown in table 14. table 15 shows the data write format for the constant time ramping. data can only be written to the target/slew ram using the safeload registers as described in the safeload registers section. a mute slew ram bit is included in the core control register to simultaneously set all the slew ram target values to 0. this is useful for implementing a global multichannel mute. when this bit is deasserted, all slew ram values will return to their original pre-muted states. table 14. linear, constant db, and rc-type ramp data write byte 0 byte 1 bytes 2C4 000000, curve_type[1:0] time_const[3:0], data[27:24] data[23:0] table 15. constant time ramp data write byte 0 byte 1 bytes 2C4 000000, curve_type[1:0] update_step[0], #_of_steps[2:0], data[15:12] data[11:0], reserved[11:0]
AD1941 preliminary technical data rev. pre | page 18 of 32 the four ramping curve types are 1. linearvalue slews to target using a fixed step size. 2. constant dbvalue slews to target using the current value to calculate the step size. the resulting curve has a constant rise and decay when measured in db. 3. rc-typevalue slews to target using the difference between target and current values to calculate the step size, producing a simple rc type curve for rising and falling. 4. constant timevalue slews to the target in a fixed number of steps in a linear fashion. the control port mute has no affect on this type. table 16 target/slew ram ramp type settings setting ramp type 00 linear 01 constant db 10 rc-type 11 constant time the following sections detail how the control port writes to the target/slew ram to control the time constant and ramp type parameters. ramp types 1C3: linear, constant db, rc-type (34-bit write) the target word for the first three ramp types is broken up into three parts. the 34-bit command is written with six leading 0s to extend the data write to five bytes. the parts of the target ram write are described below. ? ramp type (2 bits) ? time constant (4 bits) 0000 = fastest 1111 = slowest ? data (28 bits): 5.23 format ramp type 4constant time (34-bit write) the target word for the constant time ramp type is written in five parts, with the 34-bit command again written with six leading zeros to extend the data write to five bytes. the parts of the constant time target ram write are described below. ? ramp type (2 bits). ? update step (1 bit). set to 1 when new target is loaded to trigger step value update. value is automatically reset after the step value is updated. ? number of steps (3 bits). the number of steps that it takes to slew to the target value is set by these three bits, with the number of steps equal to 2 3-bit setting + 6 . 000 = 64 001 = 128 010 = 256 011 = 512 100 = 1024 101 = 2048 110 = 4096 111 = 8196 ? data (16 bits). 2.14 format. ? reserved (12 bits). when writing to the ram, these bits should all be set to 0. target and slew ram initialization on reset, the target/slew ram initializes to preset values. the target ram initializes to a linear ramp type with a time constant of 5 and the data set to 1.0. the slew ram initializes to a value of 1.0. these defaults give a full-scale (1.0 to 0.0) ramp time of 21.3 ms. linear update math linear math is the addition or subtraction of a constant value (step). the equation to describe this step size is () 20 10 13 5 2 2 ? = tconst step the result of the equation is normalized to 5.23 data format. this gives a time constant range from 6.75 ms to 213.4 ms. (C60 db relative to 0 db full scale). an example of this kind of update is shown in figure 13. all slew ram figure examples, except the second constant time plot, show a ramp from C80 db to 0 db (full scale). all figures except the constant time plots (figure 16 and figure 17) use a time constant of 0x7 (0x0 being the fastest and 0xf being the slowest). time (ms) output level (v) 1 0.4 0.6 0.8 0.2 0 ?0.4 ?0.2 ?1 ?0.8 ?0.6 0102030 04607-0-017 figure 13. slew ramlinear update plot constant db and rc-type ponential update math exponential math is accomplished by shifts and adds with a range from 6.1 ms to 1.27 s (C60 db relative to 0 db full scale). when the ramp type is set to 01 (constant db), each step size is set to the current value in the slew data. when the ramp type bits are set to 10 (rc type), the step sizes are equal to the difference between the values in the target ram and slew ram. figure 14 and figure 15 show examples of this type of target/slew ram ramping. a decaying plot of both the constant db and rc-type ramps would be a mirror image of what is shown in figure 14.
preliminary technical data AD1941 rev. pre | page 19 of 32 04607-0-018 time (ms) output level (v) 1 0.8 0.6 0.4 0.2 0 ?0.6 ?0.4 ?0.2 ?0.8 ?1 010 520 15 30 25 35 figure 14. slew ramcons tant db update plot 04607-0-019 time (ms) output level (v) 1 0.8 0.6 0.4 0.2 0 ?0.6 ?0.4 ?0.2 ?0.8 ?1 0102030 figure 15. slew ramrc-type update plot 04607-0-020 time (ms) output level (v) 1 0.8 0.6 0.4 0.2 0 ?0.6 ?0.4 ?0.2 ?0.8 ?1 0102030 figure 16 slew ramconstant time update plot, full scale 04607-0-021 time (ms) output level (v) 1 0.8 0.6 0.4 0.2 0 ?0.6 ?0.4 ?0.2 ?0.8 ?1 0102030 figure 17 slew ramconstant ti me update plot, half scale constant time update math constant time math is accomplished by adding a step value that is calculated after each new target is loaded. the equation for this step size is step = ( targ et d ata ? slew data )/( number of steps ) figure 16 shows a plot of the target/slew ram operating in constant time mode. for this example, 128 steps are used to reach the target value. this type of ramping will take a fixed amount of time for a given number of steps, regardless of the difference in the initial state and the target value. figure 17 shows a plot of a constant time ramp from C80 db to C6 db (half scale) using 128 steps. you can see that the ramp takes the same amount of time as the previous ramp from C80 db to 0 db. safeload registers many applications require real-time control of signal processing parameters, such as filter coefficients, mixer gains, multi- channel virtualizing parameters, or dynamics processing curves. to prevent instability from occurring, all of the parameters of a biquad filter must be updated at the same time. otherwise, the filter could execute for one or two audio frames with a mix of old and new coefficients. this mix could cause temporary instability, leading to transients that could take a long time to decay. to eliminate this problem, the AD1941 loads a set of 10 registers in the control port (five for 28-bit parameters, and another five for indirectly addressing the target/slew rams) with the desired parameter or target/slew ram address and data. five registers are used because a biquad filter uses five coefficients, and it is desirable to be able to do a complete biquad update in one transaction. the safeload registers can be used to update either the parameter ram or target/slew ram values. once these registers are loaded, the appropriate initiate safe transfer bit (there are separate bits for parameter and target/slew loads) in the core control register should be set to initiate the loading into ram. program lengths should be limited to 1,531 cycles (1,536 ? 5) to ensure that the sigmadsp is able to perform the safeloads. it can be guaranteed that the safeload will have occurred within one lrclk period (21 s at f s = 48 khz) of the initiate safe transfer bit being set. the safeload logic automatically sends only those safeload regis- ters that have been written to since the last safeload operation. for example, if only two parameters are to be sent, only two of the five safeload registers must be written to. when the initiate safe transfer bit (in the core control register) is asserted, only those two registers are sent; the other three registers are not sent to the ram and can still hold old or invalid data.
AD1941 preliminary technical data rev. pre | page 20 of 32 table 17. data capture co ntrol registers (2634C2641) register bits function 12:2 11-bit program counter address 1:0 register select 00 = mult_x_input 01 = mult_y_input 10 = mac_output 11 = accum_fback data capture registers the AD1941s data capture feature allows the data at any node in the signal processing flow to be sent to one of six control port-readable registers or to a serial output pin. this can be used to monitor and display information about internal signal levels or compressor/limiter activity. the AD1941 contains six indepe ndent control port-readable data capture registers, and two digital output capture registers. the digital output registers are output on sdata_out7 when the data capture serial out enable bit (bit 14) is set in serial output control register 2. these registers are useful when debugging the signal processing flow. for each of the data capture registers, a capture count and a register select must be set. the capture count is a number between 0 and 1,535 that corresponds to the program step number where the capture will occur. the register select field programs one of four registers in the dsp core that will be transferred to the data capture register when the program counter equals the capture count. the register select field selections are shown in table 18. table 18. data capture output register select setting register 00 multiplier x input (mult_x_input) 01 multiplier y input (mult_y_input) 10 multiplier-accumulator output (mac_out) 11 accumulator feedback (accum_fback) the capture count and register select bits are set by writing to one of the eight data capture registers at register addresses 2634: control port data capture setup register 0 2635: control port data capture setup register 1 2636: control port data capture setup register 2 2637: control port data capture setup register 3 2638: control port data capture setup register 4 2639: control port data capture setup register 5 2640: digital out data capture setup register 0 2641: digital out data capture setup register 1 the captured data is in 5.19 tw os complement data format for all eight register select fields. the four lsbs are truncated from the internal 5.23 data-word. the data that must be written to set up the data capture is a concatenation of the 11-bit program count index with the 2-bit register select field. the capture count and register select values that correspond to the desired point to be monitored in the signal processing flow can be found in a file output from the program compiler. the capture registers can be accessed by reading from locations 2634 to 2639 (for control port capture registers). the format for reading and writing to the data capture registers can be seen in table 27 and table 28. table 19. dsp core control register (2642) register bits function 15:14 reserved 13 slew ram muted (read only) 12 mute slew ram, all locations 11 reserved, set to 0 10 use serial out lrclk for output latch 9 clear internal registers to all 0s, active low 8 force multiplier to 0 7 inititalize data memory with 0s 6 mute serial input port 5 initiate safe transfer to target ram 4 initiate safe transf er to parameter ram 3:2 input serial port to sequencer sync 00 = lrclk 01 = lrclk/2 10 = lrclk/4 11 = lrclk/8 1:0 program length 00 = 1536 01 = 768 10 = 384 11 = 192 dsp core control register the controls in this register set the operation of the AD1941s dsp core. bits 6 to 9 can be set to initiate a shutdown of the core. the output is muted when this is performed, so it is best to first assert the mute slew ram bit (if slew ram locations are used as volume controls in the program) to avoid a click or pop when shutdown is asserted. slew ram muted (bit 13) this bit is set to 1 when the slew ram mute operation has been completed. this bit is read-only and is automatically cleared by reading. mute slew ram, all locations (bit 12) setting this bit to 1 initiates a mute of all 64 slew ram locations. when reset to 0, all ram locations return to their previous state. this bit is only functional if slew ram locations are used in the custom program design. keep in mind that the AD1941s default program does not use any slew ram volume controls, so this bit has no effect in that case. the mute operation is identical to writing all 0s to the data portion of the target ram, and therefore the time constant and linear/ exponential curve selection is determined by the bits that have been previously written to the high bits of the target ram.
preliminary technical data AD1941 rev. pre | page 21 of 32 use serial out lrclk for output latch (bit 10) normally, data is transferred from the dsp core to the serial output registers at the end of each program cycle. in some cases (e.g., when output sample rate is set to some multiple of input sampling rate), it is desirable to transfer the internal core data multiple times during a single input audio sample period. set- ting this bit to 1 allows the output lrclk signal to control this data transfer rather than the internal end-of-sequence signal. operation in this mode may require custom assembly-language coding in the adi graphical tools. clear registers to all zeros (bit 9) setting this bit to 0 sets the contents of the accumulators and serial output registers to 0. like the other register bits, this one powers up to 0. this means the AD1941 powers up in clear mode and will not pass a signal until a 1 is written to this bit. this is intended to prevent noises from inadvertently occurring during the power-up sequence. force multiplier to zero (bit 8) when this bit is set to 1, the input to the dsp multiplier is set to 0, which results in the multiplier output being 0. this control bit is included for maximum flexibility, and is normally not used. initialize data memory with zeros (bit 7) setting this bit to 1 initializes all data memory locations to 0. this bit is cleared to 0 after the operation is complete. this bit should be asserted after a complete program/parameter download has occurred to ensure click-free operation. zero serial input port (bit 6) when this bit is set to 1, the 16 serial input channels are forced to all 0s. initiate safe transfer to target ram (bit 5) setting this bit to 1 initiates a safeload transfer to the target/slew ram. this bit is cleared when the operation is completed. there are five safeload register pairs (address/data); only those registers that have been written since the last safeload event are transferred. address 0 corresponds to the first target ram location. initiate safe transfer to parameter ram (bit 4) setting this bit to 1 initiates a safeload transfer to the parameter ram. this bit is cleared when the operation is completed. there are five safeload registers pairs (address/data); only those registers that have been written since the last safeload event are transferred. address 0 corresponds to the first parameter ram location. input serial port to sequencer sync (bits 3:2) normally, the internal sequencer is synchronized to the incoming audio frame rate by comparing the internal program counter with the edge of the lrclk input signal. in some cases the AD1941 may be used to decimate an incoming signal by some integer factor. in this case, it is desirable to synchronize the sequencer to a submultiple of the incoming lrclk rate so more than one audio input sample is available to the program during a single audio output frame. for example, if these bits are set to 01 (lrclk/2), a 96 khz input can be used with a 48 khz output, allowing two consecutive input samples to be processed during a single audio output frame. operation in this mode may require custom assembly-language coding in the adi graphical tools. program length (bits 1:0) 96 khz and 192 khz modes these bits set the length of the internal program. the default program length is 1,536 instructions for f s = 48 khz, but the program length can be shortened by factors of 2 to accom- modate sample rates higher than 48 khz. for f s = 96 khz the program length should be set to 768 (01), and the length should be set at 384 steps (10) for f s = 192 khz. a program length of 192 steps is available, but will not be commonly used. low power mode this setting can also be used to reduce the power consumption of the AD1941. if the program length is set to 768 steps and f s = 48 khz, instead of 96 khz, then the power consumption of the part will be cut in approximately half. correspondingly, when the program length is set to 384 steps with f s = 48 khz the power consumption will be about ? of what it is in normal operation with 1,536 program steps and f s = 48 khz. table 20. ram configuration register (2643) register bits function 7:4 reserved 3:0 ram modulo, 1 lsb corresponds to 512 locations, max = 0b1100 (6 k) ram configuration register the AD1941 uses a modulo ram addressing scheme to allow filters and other blocks to be coded easily without requiring filter data to be explicitly moved during the filtering operation. this is accomplished by adding the contents of an address offset counter to the actual base address supplied in the AD1941s core. this address offset counter is incremented automatically at the audio frame rate. this method works well for most audio applications that involve filtering. in some cases, however, it is desirable to have direct access to the ram, bypassing the autoincrementing address offset counter. for this reason, the data memory in the AD1941 can be divided into modulo and nonmodulo portions by programming the ram configuration register (table 20). the address range from 0 to 512 (ram configuration register contents) is treated as modulo memory with autoincrementing address offset registers. the maximum setting of this register is the full size of the ram, or 6,144 (6 k) data words. note that addresses in this range automatically wrap around the modulo boundary as set by the register. this feature is not normally
AD1941 preliminary technical data rev. pre | page 22 of 32 used with adi-supplied blocks. for normal operation, this register may be left in its default state, which sets up the entire ram to use the autoincrement feature. this feature is included for maximum programming flexibility and may be used in the case of specialized software development. control port read/write data formats the read/write formats of the control port are designed to be byte-oriented. this allows for easy programming of common microcontroller chips. in order to fit into a byte-oriented format, 0s are appended to the data fields before the msb in order to extend the data word to the next multiple of eight bits. for example, 28-bit words written to the parameter ram are appended with four leading 0s in order to reach 32 bits (4 bytes); 40-bit words written to the program ram are not appended with any 0s because it is already a full 5 bytes. these zero-extended data fields are appended to a 3-byte field consisting of a 7-bit chip address, a read/write bit, and an 11-bit ram/register address. the control port knows how many data bytes to expect based on the address that is received in the first three bytes. the total number of bytes for a single-location write command can vary from four bytes (for a control register write), to eight bytes (for a program ram write). burst mode may be used to fill contiguous register or ram locations. a burst mode write is done by writing the address and data of the first ram/register location to be written. rather than ending the control port transaction (by bringing the clatch signal high in the AD1941, after the data word, as would be done in a single- address write, the next data word can be written immediately without first writing its specific address. the AD1941 control port auto-increments the address of each write, even across the boundaries of the different rams and registers. table 21. parameter ram read/wri te format (single address) byte 0 byte 1 byte 2 byte 3 bytes 4C6 chip_adr [6:0], w /r 0000, param_adr[11:8] param_adr[7:0] 0000, param[27:24] param [23:0] table 22. parameter ram block read/write format (burst mode) byte 0 byte 1 byte 2 byte 3 bytes 4C6 byte 7 byte 11 chip_adr [6:0], w /r 0000, param_adr[11:8] param_adr[7: 0] 0000, param[27:24] param[23:0] byte 8 byte 12 byte 9 byte 13 byte 10 byte 14 param_adr + 1 param_adr + 2 table 23. program ram read/wri te format (single address) byte 0 byte 1 byte 2 bytes 3C7 chip_adr [6:0], w /r 0000, prog_adr[11:8] prog_adr[7:0] prog[39:0] table 24. program ram block read/write format (burst mode) byte 0 byte 1 byte 2 byte 3-7 byte 8 byte 13 chip_adr [6:0], w /r 0000, prog_adr[11:8] prog_adr[7:0] prog[39:0] byte 9 byte 14 byte 10 byte 15 byte 11 byte 16 byte 12 byte 17 prog_adr +1 prog_adr +2 table 25. control register read/write form at (core, serial out 0, serial out 1) byte 0 byte1 byte 2 byte 3 byte 4 chip_adr [6:0], w /r 0000, reg_adr[11:8] reg_adr[7:0] data[15:8] data[7:0] table 26. control register read/write form at (ram configuration, serial input) byte 0 byte1 byte 2 byte 3 chip_adr [6:0], w /r 0000, reg_adr[11:8] reg_adr[7:0] data[7:0]
preliminary technical data AD1941 rev. pre | page 23 of 32 table 27. data capture register write format byte 0 byte 1 byte 2 byte 3 byte 4 chip_adr [6:0], w /r 0000, data_capture_adr[11:8] data_cap ture_adr[7:0] 000, progcount[10:6] 1 progcount[5:0] 1 , regsel[1:0] 2 1 progcount[10:0] = value of program counter where trap occurs (the table of values is generated by the program compiler). 2 regsel[1:0] selects one of four registers (see data capture registers section). table 28. data capture (control port readback) register read format byte 0 byte 1 byte 2 bytes 3C5 chip_adr [6:0], w /r 0000, data_capture_adr[11:8] data_c apture_adr[7:0] data[23:0] table 29. safeload register data write format byte 0 byte 1 byte 2 byte 3 bytes 4C7 chip_adr [6:0], w /r 0000, safeload_adr[11:8] safeload_adr[7 :0] 000000, data[33:32] data[31:0] table 30. safeload register address write format byte 0 byte 1 byte 2 byte 3 byte 4 chip_adr [6:0], w /r 0000, safeload_adr[11:8] safeload_adr[7:0] 000000, param_adr[9:8] param_adr[7:0]
AD1941 preliminary technical data rev. pre | page 24 of 32 serial data input/output ports the AD1941s flexible serial data input and output ports can be set to accept or transmit data in 2-channel formats or in an 8- or 16-channel tdm stream. data is processed in twos complement, msb-first format. the left channel data field always precedes the right channel data field in the 2-channel streams. in the tdm modes, slots 0 to 3 (8-channel tdm) or slots 0 to 7 (16-channel tdm) fall in the first half of the audio frame, and slots 4 to 7 (or slots 8 to 15 in 16-channel tdm) are in the second half of the frame. the serial modes are set in the serial output and serial input control registers. the input control register allows control of clock polarity and data input modes. the valid data formats are i 2 s , left-justified, right-justified (24-, 20-, 18-, or 16-bit), 8-channel, and 16-channel tdm. in all modes except for the right-justified modes, the serial port will accept an arbitrary number of bits up to a limit of 24. extra bits will not cause an error, but they will be truncated internally. proper operation of the right- justified modes requires that there be exactly 64 bclks per audio frame. the tdm data is input on sdata_in2 and sdata_in3 when in 2 8-channel tdm mode, and on sdata_in2 in 16-channel tdm mode. the lrclk in tdm mode can be input to the AD1941 as either a 50/50 duty cycle clock or as a bit-wide pulse. the two clock domains on the serial output ports can generate two separate 8-channel tdm streams or one 16-channel tdm stream. when in 16-channel tdm mode, the data is clocked by lrclk_out0 and bclk_out0. the AD1941 must be in slave mode for 16-channel tdm unless the data is sampled at 48 khz; the part cannot generate a tdm bit clock that is fast enough to support 96 khz or 192 khz. in 8-channel tdm mode, the AD1941 can be a master for 48 khz and 96 khz data, but not for 192 khz data. table 31 displays the modes in which the serial output port will function. the output control registers give the user control of clock polarities, clock frequencies, clock types, and data format. in all modes except for the right-justified modes (msb delayed by 8, 12, or 16), the serial port accepts an arbitrary number of bits up to a limit of 24. extra bits will not cause an error, but will be truncated internally. proper operation of the right-justified modes requires the lsb to align with the edge of the lrclk. the default settings of all serial port control registers correspond to 2-channel i 2 s mode. lrclk_out0 and bclk_out0 are clocks for serial output ports 0 to 7, and lrclk_out1 and bclk_out1 clock ports 8 to 15. all registers default to being set as all 0s. all register settings apply to both master and slave modes unless otherwise noted. table 32 shows the proper configurations for standard audio data formats. table 31 serial output port ma ster/slave mode capabilities f s 2-channel modes (i 2 s, left-justified, right-justified) 8-channel tdm 16-channel tdm 48 khz master and slave master and slave master and slave 96 khz master and slave master and slave slave only 192 khz master and slave slave only slave only table 32. data format configurations format lrclk polarity lrclk ty pe bclk polarity msb position i 2 s (figure 18) frame begins on falling edge clock data changes on falling edge delayed from lrclk edge by one bclk left-justified (figure 19) frame begins on rising edge clock data changes on falling edge aligned with lrclk edge right-justified (figure 20) frame begins on rising edge clock data changes on falling edge delaye d from lrclk edge by 8, 12, or 16 bclks tdm with clock (figure 21) frame begins on falling edge clock data changes on falling edge delayed from start of word clock by one bclk tdm with pulse (figure 22) frame begins on rising edge pulse data changes on falling edge delaye d from start of word clock by one bclk
preliminary technical data AD1941 rev. pre | page 25 of 32 table 33. serial output control register 1 (channels 0C7) (2644) register bits function 15 dither enable 0 = diabled 1 = enabled 14 internally link tdm streams into single, 16-channel stream 0 = indepenent 1 = linked 13 lrclk polarity 0 = frame begins on falling edge 1 = frame begins on rising edge 12 bclk polarity 0 = data changes on falling edge 1 = data changes on rising edge 11 master/slave 0 = slave 1 = master 10:9 bclk frequency (master mode only) 00 = core_clock/24 01 = core_clock/12 10 = core_clock/6 11 = core_clock/3 8:7 frame sync frequency (master mode only) 00 = core_clock/1536 01 = core_clock/768 10 = core_clock/384 6 frame sync type 0 = lrclk 1 = pulse 5 serial output/tdm mode control 0 = 8 serial data outputs 1 = enable tdm (8- or 16-channel) on sdata_out0 4:2 msb position 000 = delay by 1 001 = delay by 0 010 = delay by 8 011 = delay by 12 100 = delay by 16 101 reserved 111 reserved 1:0 output word length, channels 0C7 00 = 24 bits 01 = 20 bits 10 = 16 bits 11 = 16 bits table 34. serial output control register 2 (channels 8C15) (2645) register bits function 15 dither enable 0 = disabled 1 = enabled 14 data capture serial out enable (uses sdata_out7) 0 = disable 1 = enable 13 lrclk polarity 0 = frame begins on falling edge 1 = frame begins on rising edge 12 bclk polarity 0 = data changes on falling edge 1 = data changes on rising edge 11 master/slave 0 = slave 1 = master 10:9 bclk frequency (master mode only) 00 = core_clock/24 01 = core_clock/12 10 = core_clock/6 11 = core_clock/3 8:7 frame sync frequency (master mode only) 00 = core_clock/1536 01 = core_clock/768 10 = core_clock/384 6 frame sync type 0 = lrclk 1 = pulse 5 serial output/tdm mode control 0 = 8 serial data outputs 1 = enable tdm on sdata_out4 (8-channel) or sdata_out0 (16-channel) 4:2 msb position 000 = delay by 1 001 = delay by 0 010 = delay by 8 011 = delay by 12 100 = delay by 16 101 reserved 111 reserved 1:0 output word length, channels 8C15 00 = 24 bits 01 = 20 bits 10 = 16 bits 11 = 16 bits
AD1941 preliminary technical data rev. pre | page 26 of 32 serial output control registers dither enable (bit 15) setting this bit to 1 enables dither on the appropriate channels. internally link tdm streams into single 16-channel stream (bit 14, serial output control register 1) when this bit is set to 1, the tdm output stream is output in a single 16-channel stream on sdata_out0. when set to 0, tdm data is output on two independent 8-channel streams on pins sdata_out0 and sdata_out4. data capture serial out enable (bit 14, serial output control register 2) when set to 1, sdata_out7 is set as the output of the data capture digital output registers (2640C2641). see the data capture registers section for a full explanation of using this mode. lrclk polarity (bit 13) when set to 0, the left channel data is clocked when lrclk is low, and the right data clocked when lrclk is high. when set to 1, this is reversed. bclk polarity (bit 12) this bit controls on which edge of the bit clock the output data is clocked. data changes on the falling edge of bclk_outx when this bit is set to 0, and on the rising edge when this bit is set at 1. master/slave (bit 11) this bit sets whether the output port is a clock master or slave. the default setting is slave; on power-up, pins bclk_outx and lrclk_outx are set as inputs until this bit is set to 1, at which time they become clock outputs. bclk frequency (bits 10:9) when the output port is being used as a clock master, these bits set the frequency of the output bit clock, which is divided down from the internal 73.728 mhz core clock. frame sync frequency (bits 8:7) when the output port is used as a clock master, these bits set the frequency of the output word clock on the lrclk_outx pins, which is divided down from the internal 73.728 mhz core clock. frame sync type (bit 6) this bit sets the type of signal on the lrclk_outx pins. when set to 0, the signal is a word clock with a 50% duty cycle; when set to 1, the signal is a pulse with a duration of one bit clock at the beginning of the data frame. serial output/tdm mode control (bit 5) setting this bit to 1 changes the output port from multiple serial outputs to a single tdm output stream on the appropriate sdata_outx pin. this bit must be set in both serial output control registers to enable 16-channel tdm on sdata_out0. msb position (bits 4:2) these three bits set the position of the msb of data with respect to the lrclk edge. the data output of the AD1941 is always msb first. output word length (bits 1:0) these bits set the word length of the output data-word. all bits following the lsb are set to 0. table 35. serial input control register (2646) register bits function 5 8-/16-channel tdm input 0 = dual 8-channel tdm 1 = 16-channel tdm input 4 lrclk polarity 0 = frame begins on falling edge 1 = frame begins on rising edge 3 bclk polarity 0 = data changes on falling edge 1 = data changes on rising edge 2:0 serial input mode 000 = i 2 s 001 = left-justified 010 = tdm 011 = right-justified, 24-bit 100 = right-justified, 20-bit 101 = right-justified, 18-bit 110 = right-justified, 16-bit serial input control register 8-/16-channel tdm input (bit 5) setting this bit to 0 puts the AD1941 into dual 8-channel tdm input mode, with the two streams coming in on sdata_in2/tdm_in1 and sdata_in3/tdm_in0. channels 0 to 7 will be input on tdm_in0 and channels 8 to 15 will come in on tdm_in1. setting this bit to 1 puts the part in 16-channel tdm input mode, input on tdm_in1. lrclk polarity (bit 4) when set to 0, the left channel data on the sdata_inx pins is clocked when lrclk_in is low; and the right input data clocked when lrclk_in is high. when set to 1, this is reversed. in tdm mode, when this bit is set to 0, data is clocked in starting with the next appropriate bclk edge (set in bit 3 of this register) following a falling edge on the lrclk_in pin. when set to 1 and running in tdm mode, the input data is valid on the bclk edge following a rising edge on the word clock (lrclk_in). the serial input port can also operate with a pulse input signal, rather than a clock. in this case, the first edge of the pulse is used by the AD1941 to start the data frame. when this polarity bit is set to 0, a low pulse should be used, and a high pulse should be used when the bit it set to 1.
preliminary technical data AD1941 rev. pre | page 27 of 32 bclk polarity (bit 3) this bit controls on which edge of the bit clock the input data changes, and on which edge it is clocked. data changes on the falling edge of bclk_in when this bit is set to 0, and on the rising edge when this bit is set at 1. serial input mode (bits 2:0) these two bits control the data format that the input port expects to receive. bits 3 and 4 of this control register will override the settings in bits 2:0, so all four bits must be changed together for proper operation in some modes. the clock diagrams for these modes are shown in figure 18, figure 19, and figure 20. note that for left-justified and right-justified modes the lrclk polarity is high, then low, which is opposite from the default setting of bit 4. when these bits are set to accept a tdm input, the AD1941s data starts after the edge defined by bit 4. figure 21 shows an 8-channel tdm stream with a high-to-low triggered lrclk and data changing on the falling edge of the bclk. the AD1941 expects the msb of each data slot delayed by one bclk from the beginning of the slot, just like in the stereo i 2 s format. in 8-channel tdm mode, channels 0 to 3 will be in the first half of the frame, and channels 4 to 7 will be in the second half. when in 16-channel tdm mode, the first half-frame will hold channels 0 to 7, and the second half-frame will have channels 8 to 15. figure 22 shows an example of a tdm stream running with a pulse word clock, which would be used to interface to adi codecs in their auxiliary mode. to work in this mode on either the input or output serial ports, the AD1941 should be set to frame beginning on the rising edge of lrclk, data changing on the falling edge of bclk, and msb position delayed from the start of the word clock by one bclk. table 32 explains the clock settings for each of these formats. lrclk bclk s dat a msb left channel lsb msb right channel lsb 1 /f s 04607-0-023 figure 18. i 2 s mode16 to 24 bits per channel lrclk bclk sdata left channel msb lsb msb right channel lsb 1 /f s 04607-0-024 figure 19. left-justified mode16 to 24 bits per channel lrclk bclk sdata left channel msb lsb msb right channel lsb 1 /f s 04607-0-025 figure 20. right-justified mode16 to 24 bits per channel
AD1941 preliminary technical data rev. pre | page 28 of 32 lrclk bclk data slot 1 slot 2 slot 5 slot 6 32 bclks msb msb?1 msb?2 256 bclks slot 3 slot 4 slot 7 slot 8 lrclk bclk data 04607-0-012 figure 21. 8-channel tdm mode. this diagram shows just one of the formats in which the AD1941 can operate in tdm mode. please r efer to the serial data input/output ports section for a more complete description of the modes of operation. lrclk slot 0 slot 1 slot 2 slot 3 slot 4 slot 5 slot 6 slot 7 ch 0 bclk sdat a msb tdm 8th ch 32 bclks msb tdm 04607-0-022 figure 22. tdm mode with pulse word clock
preliminary technical data AD1941 rev. pre | page 29 of 32 initialization power-up sequence the AD1941 has a built-in power-up sequence that initializes the contents of all internal rams. during this time, the contents of the internal program boot rom are copied to the internal program ram memory, and the parameter ram (all 0s) is filled with values from its associated boot rom. the default boot rom program simply copies the serial inputs to the serial outputs with no processing. the data memories are also cleared during this time. the boot sequence, which starts on the rising edge of the resetb pin, lasts for 8,192 cycles of the signal on the mclk pin at start-up. assuming even the slowest possible signal on this pin, a 64 f s clock, the boot sequence will still complete before the pll locks to the input clock. since the boot sequence requires a stable master clock, the user should avoid writing to or reading from the registers until the mclk input signal has settled and the pll has locked. the pll takes approximately 3 ms to lock. coming out of reset, the clock mode is imme- diately set by the pll_ctrl0, pll_ctrl1, and pll_ctrl2 pins. reset is synched to the falling edge of the internal mclk. the power-up default signal processing flow in the AD1941 simply takes the eight inputs and copies these signals to the 16 digital outputs, as shown in figure 23. 04607-0-004 s data_in 0 s data_in1 s data_in 2 s data_in 3 sdata_out0 sdata_out1 sdata_out2 sdata_out3 sdata_out4 sdata_out5 sdata_out6 sdata_out7 figure 23. default program signal flow setting master clock/pll mode the AD1941s mclk input feeds a pll, which generates the 1536 f s clock to run the dsp core. in normal operation, the input to mclk must be one of the following; 64 f s , 256 f s , 384 f s , or 512 f s , where f s is the input sampling rate. the mode is set on pll_ctrl0, pll_ctrl1, and pll_ctrl2, according to table 36. if the AD1941 is set to receive double- rate signals (by reducing the number of program steps/sample by a factor of 2 using the core control register), then the master clock frequencies must be either 32 f s , 128 f s , 192 f s , or 256 f s . if the AD1941 is set to receive quad-rate signals (by reducing the number of program steps/sample by a factor of 4 using the core control register), then the master clock frequencies must be one of 16 f s , 64 f s , 96 f s , or 128 f s . on power-up, a clock signal must be present on mclk so that the AD1941 can complete its initialization routine. the pll can also run in bypass mode, where the clock present on mclk is fed directly to the dsp core, although this setting is not recommended for normal operation. table 36. pll modes mclk input pll_ctrl2 pll_ctrl1 pll_ctrl0 64 f s 0 0 0 256 f s 0 1 0 384 f s x 1 x 1 1 512 f s 1 0 0 bypass 1 1 0 1 x = dont care the clock mode should not be changed without also resetting the AD1941. if the mode is changed on the fly, a click or pop may result on the outputs. the state of the pll_ctrlx pins should be changed while resetb is held low. voltage regulator the AD1941 includes an on-board voltage regulator that allows the chip to be used in systems where a 2.5 v supply is not available, but 3.3 v or 5 v is. the only external components needed for this are a pnp transistor such as an fzt953, a single capacitor, and a single resistor. the recommended design for the voltage regulator is shown in figure 24. the 10 f and 100 nf capacitors shown in this schematic are recommended for bypassing, but are not necessary for operation. here, vdd is the main system voltage (3.3 v or 5 v) and should be connected to vsupply. 2.5 v is generated at the transistors collector, which is connected to the vdd pins, pll_vdd and vsense. the reference voltage on vref is 1.15 v and is generated by the regulator. a 1 nf capacitor should be connected between this pin and ground. vdrive is connected to the base of the pnp transistor. a 1 k? resistor should be connected between vdrive and vsupply. if the regulator is not used in the design, vsupply, vref, vdrive, and vsense can be tied to ground. 10 f 10 f 100nf 100nf 1nf 1k ? ad1940 dvdd fzt953 04607-0-009 vsupply vref vdrive vsense vdd + + pll_vdd figure 24. voltage regulator design
AD1941 preliminary technical data rev. pre | page 30 of 32 outline dimensions top view (pins down) 1 12 13 25 24 36 37 48 0.27 0.22 0.17 0.50 bsc 7.00 bsc sq seating plane 1.60 max 0.75 0.60 0.45 view a 9.00 bsc sq pin 1 0.20 0.09 1.45 1.40 1.35 0.08 max coplanarity view a rotated 90 ccw seating plane 10 6 2 7 3.5 0 0.15 0.05 compliant to jedec standards ms-026bbc figure 25. 48-lead low-profile quad flat package [lqfp] dimensions shown in millimeters ordering guide model temperature range package description package option AD1941ystz 1 C40c to +105c 48-lead lqfp st-48 AD1941ystzrl 1 C40c to +105c 48-lead lqfp st-48 in 13 reel 1 z= pb-free part.
preliminary technical data AD1941 rev. pre | page 31 of 32 notes
AD1941 preliminary technical data rev. pre | page 32 of 32 notes ? 2005 analog devices, inc. all rights reserved. trademarks and registered trademarks are the property of their respective owners. c04607 -0-2/05(pre)


▲Up To Search▲   

 
Price & Availability of AD1941

All Rights Reserved © IC-ON-LINE 2003 - 2022  

[Add Bookmark] [Contact Us] [Link exchange] [Privacy policy]
Mirror Sites :  [www.datasheet.hk]   [www.maxim4u.com]  [www.ic-on-line.cn] [www.ic-on-line.com] [www.ic-on-line.net] [www.alldatasheet.com.cn] [www.gdcy.com]  [www.gdcy.net]


 . . . . .
  We use cookies to deliver the best possible web experience and assist with our advertising efforts. By continuing to use this site, you consent to the use of cookies. For more information on cookies, please take a look at our Privacy Policy. X